package com.example.homework.adapters

import androidx.recyclerview.widget.DiffUtil
import com.example.homework.db.tables.Photos


class DiffUtilCallback: DiffUtil.ItemCallback<Photos>() {
    override fun areItemsTheSame(oldItem: Photos, newItem: Photos): Boolean = oldItem.path == newItem.path

    override fun areContentsTheSame(oldItem: Photos, newItem: Photos): Boolean = oldItem == newItem
}